#{extends 'frame.html' /}
#{set title:'接单数量统计' /}

#{set 'moreStyles'}
<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />
#{/set}

<div class="contentCard">
	<div class="contentBody" style="">
		<table class="normTable">
		<caption>每日接单数统计</caption>
			<thead>
				<tr>
					<td>日期</td>
					<td>拿样单</td>
                    <td>收藏单</td>
					<td>微分销</td>
					<td>放单商家数量</td>
					<td>接手任务买手数量</td>
					<td>新注册买手（接手任务）</td>
					<td>新注册商家（放单）</td>
				</tr>
			</thead>
			<tbody id="orderContainer"></tbody>
		</table>
		<div id="noMsg"><div class="warnBox"><span class="iconfont">&#xf00b6;</span>没有任务!</div></div>
		<div class="pagin-btm clearFix"style="display: none;">
			<div class="pagination"></div>
		</div>
		<div class="popWrapper" style="display: none;" id="tr_loading_mask">
			<div class="maskLayer"></div>
			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />		
		</div>
	</div>
</div>

<div class="contentCard">
	<div class="contentBody" style="width: 500px;">
		<table class="normTable">
		<caption>详情</caption>
			<thead >
				<tr>
					<td>用户</td>
					<td>单数</td>
				</tr>
			</thead>
			<tbody id="detail"></tbody>
		</table>
	</div>
</div>

<textarea id="orderTemp" class="muban">
{{#results}}
	<tr>
		<td>{{date}}</td>
		<td>{{orderCount}}</td>
		<td>{{cacCount}}</td>
		<td>{{wdCount}}</td>
		<td><a data-time="{{date}}" data-type="PUBLISH" href="/admin/countOfTasks?takenTime={{date}}&type=PUBLISH" class="todaySellerCount">{{sellerCount}}</a></td>
		<td><a data-time="{{date}}" data-type="TAKEN" href="/admin/countOfTasks?takenTime={{date}}&type=TAKEN" class="todayBuyerCount">{{buyerCount}}</a></td>
		<td><a data-time="{{date}}" href="javascript:;" class="takenBuer">{{newBuyer}}({{newBuyerTaskCount}})</a></td>
		<td><a data-time="{{date}}" href="javascript:;" class="publishSeller">{{newSeller}}({{newSellerTaskCount}})</a></td>
	</tr>
{{/results}}
</textarea>

#{set 'moreScripts'}
<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/admin/takeTaskCount.js'}" type="text/javascript"></script>
<script type="text/javascript">App.module = 'takeTaskCount';</script>
#{/set}